package com.qing.api.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)//支持链式写法
public class User implements Serializable {  //必须序列化

    private Long id;
    private String name;
    private Integer  age;
    private String email;
    private Integer version;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private byte deleted;

    //这个数据存在哪个数据库的字段，微服务，一个服务对应一个数据库，同一个信息可能在不同的数据库中
    private String dbSource;
}
